//
//  KKLabel.h
//  KKDoctor
//
//  Created by Mac mini on 15/10/23.
//  Copyright © 2015年 liao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, KKLabelContentAlignment) {
    KKLabelContentAlignmentMiddle = 0,      /**< 居中显示 */
    KKLabelContentAlignmentTop,             /**< 顶端显示 */
    KKLabelContentAlignmentBottom,          /**< 底端显示 */
};

@interface KKLabel : UILabel

@property (nonatomic, assign) KKLabelContentAlignment contentAlignment;     /**< 默认为居中显示 KKLabelContentAlignmentMiddle */

- (void)setAttributedTextWithText:(NSString*)text;

- (void)setAttributedTextWithText:(NSString*)text andWithTextContentWidth:(CGFloat)width;

- (void)setAttributedTextWithText:(NSString *)text andWithTextContentWidth:(CGFloat)width andWithLineSpace:(CGFloat)lineSpace;

@end
